//package top.zhmq.orderconsumer.service;
//
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
//import java.text.SimpleDateFormat;
//import java.util.Date;
//
///**
// *
// *
// * @author Glory
// * @classname CancelOrderReceiver
// * @create 2021-06-08 10:43
// */
//
//@Component
//public class CancelOrderReceiver {
//    @RabbitListener(queues = "delay_queue_1")
//    public void receive(String msg) {
//        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
//        System.out.println(sdf.format(new Date()));
//        System.out.println("Receiver :执行取消订单" + msg);
//        // 暂未实现，取消订单
//    }
//}
